package com.yswy.domain.vo.gld.addOrUpate;

import com.yswy.domain.vo.gld.addOrUpate.base.BaseReqVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 19401
 * @date 2022/6/6 17:09
 **/
@Data
public class TgEventEnumsAddOrUpdate extends BaseReqVO {
    @NotNull(message = "ID不能为空", groups = {UPDATE.class , DElECT.class})
    private Long id;

    @ApiModelProperty("回传key")
    @NotEmpty(message = "回传key不能为空", groups = {CREATE.class})
    public String eventKey ;
    @ApiModelProperty("缓存时间(天)")
    @NotNull(message = "缓存时间(天)不能为空", groups = {UPDATE.class , DElECT.class})
    public Integer cacheTime ;
    @ApiModelProperty("事件名字")
    @NotEmpty(message = "事件名字不能为空", groups = {CREATE.class})
    public String eventName ;

    @ApiModelProperty("是否扣量 0 不开启   1 开启")
    @NotNull(message = "是否扣量不能为空", groups = {CREATE.class})
    private Integer isBuckle ;
    @ApiModelProperty("投放（上架）平台  0 巨量  1 快手 ")
    @NotEmpty(message = "投放（上架）平台不能为空", groups = {CREATE.class})
    private String tfPlatform;
}
